package org.jthompson.monsoon.mock;

import org.apache.log4j.Logger;
import org.jthompson.monsoon.annotations.Event;
import org.jthompson.monsoon.annotations.Event.EventType;

public class Listener
{
	
	public static int counter = 0;
	
	@Event(name="testEvent", type=EventType.LISTENER)
	public void onAction(Action event)
	{
		Listener.counter++;
		log.info(event + " Thread Id: " + Thread.currentThread().getId());
		
		try
		{
			Thread.sleep(5000);
		} catch (Exception e) {
			
		}
	}
	
	private final static Logger log = Logger.getLogger(Listener.class);

}
